/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Courier New', monospace;
}

body {
    background-color: #0a0a14;
    color: #00f3ff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 赛博朋克背景 */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.grid-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 243, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.6), transparent);
    animation: scan 4s linear infinite;
    box-shadow: 0 0 15px #00f3ff;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* 主容器 */
.cyber-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    padding: 15px;
    gap: 15px;
    position: relative;
}

/* 左侧特效面板 */
.effects-panel {
    flex: 0 0 320px;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 243, 255, 0.3),
        inset 0 0 30px rgba(0, 243, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.cyber-title {
    color: #00f3ff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px #00f3ff;
}

.search-box {
    position: relative;
    margin-top: 10px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00f3ff;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    background: rgba(5, 10, 20, 0.8);
    border: 1px solid #00f3ff;
    border-radius: 4px;
    color: #00f3ff;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 10px #00f3ff;
}

/* 特效列表 */
.effects-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.effect-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    color: #a0f6ff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.effect-item:hover {
    background: rgba(20, 40, 80, 0.8);
    border-color: #00f3ff;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.effect-item.active {
    background: rgba(0, 50, 100, 0.8);
    border-color: #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.effect-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s;
}

.effect-item:hover::before {
    left: 100%;
}

.effect-name {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.effect-tags {
    font-size: 0.75rem;
    color: #00ccff;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.effect-tag {
    background: rgba(0, 150, 200, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

.panel-footer {
    padding: 15px;
    border-top: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats {
    font-size: 0.9rem;
    color: #80e1ff;
}

/* 按钮样式 */
.cyber-button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #003366, #0066cc);
    border: 1px solid #00f3ff;
    border-radius: 4px;
    color: #00f3ff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.cyber-button:hover {
    background: linear-gradient(45deg, #004488, #0088ff);
    box-shadow: 0 0 15px #00f3ff;
    transform: translateY(-2px);
}

.cyber-button:active {
    transform: translateY(1px);
}

.cyber-button.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cyber-button.tiny {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* 右侧预览面板 */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-header {
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(5px);
}

.control-buttons {
    display: flex;
    gap: 10px;
}

/* 预览区域 */
.preview-area {
    flex: 1;
    display: flex;
    gap: 15px;
}

.effect-display {
    flex: 1;
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 10, 30, 0.8);
}

.default-preview {
    text-align: center;
    color: #80e1ff;
    z-index: 1;
}

.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.welcome-text i {
    font-size: 3rem;
    color: #00f3ff;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.welcome-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #00f3ff;
}

.welcome-text p {
    color: #80e1ff;
}

.parameters-panel {
    flex: 0 0 280px;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.parameters-panel h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.params-container {
    flex: 1;
    overflow-y: auto;
}

.param-group {
    margin-bottom: 15px;
}

.param-label {
    display: block;
    margin-bottom: 5px;
    color: #80e1ff;
    font-size: 0.9rem;
}

.param-control {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.param-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(0, 50, 100, 0.5);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.param-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00f3ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00f3ff;
}

.param-control input[type="color"] {
    width: 40px;
    height: 30px;
    border: 1px solid #00f3ff;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.param-value {
    min-width: 40px;
    text-align: center;
    color: #00f3ff;
    font-weight: bold;
}

/* 代码面板 */
.code-panel {
    height: 300px;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid #00f3ff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.code-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-editor {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.code-editor textarea {
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.9);
    border: none;
    padding: 15px;
    color: #80e1ff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    position: relative;
    z-index: 2;
}

.code-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    pointer-events: none;
    z-index: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow: auto;
}

/* 通知 */
.cyber-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(10, 30, 50, 0.9);
    border: 1px solid #00f3ff;
    border-radius: 4px;
    color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s;
    z-index: 1000;
}

.cyber-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 10, 20, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .cyber-container {
        flex-direction: column;
    }
    
    .effects-panel {
        flex: 0 0 200px;
    }
    
    .preview-area {
        flex-direction: column;
    }
    
    .parameters-panel {
        flex: 0 0 auto;
        height: 200px;
    }
}